package com.pattern.bean;

/**
 * @Description
 * @Author Ping
 * @Date 2022/2/28 11:28
 **/
public class Address {
    private String address ;
    private String province ;
    private String city ;
    private String area ;

    public Address() {
    }

    public Address(String provice, String city, String area) {
        this.province = provice;
        this.city = city;
        this.area = area;
        this.address = new StringBuilder().append(provice)
                                           .append(city)
                                           .append(area).toString() ;
    }

    public String getProvince() {
        return this.province ;
    }
    public String getAddress() {
        return this.address ;
    }
}
